<?php 
	session_start();
	error_reporting(0);
	if(!isset($_SESSION["admin"])){
		die ("{\"id\":\"get-data\",\"result\":\"Admin Not Logged In\"}");		
	}
	include 'include/sql.php';
	
	if(!isset($_GET["page"]))
		$page = 1;
		
	else $page = (intval($_GET["page"]));
	$result =  getListMemberByPointsGained($page);
	echo $result;
?>